﻿Public Class list
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        If Request.Params("TagName") = "" Then
            GridView1.DataSourceID = "sqlDataSource1"
        Else
            GridView1.DataSourceID = "SqlDataSource3"
        End If
    End Sub
    Protected Function ShowStars(ByVal numstars As String)
        Dim sb As New System.Text.StringBuilder()
        For index As Integer = 1 To numstars
            sb.Append("*")
        Next
        Return sb
    End Function

    Protected Sub btn_TagSearch_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btn_TagSearch.Click
        Dim url As String = "list.aspx?TagName=" & tb_TagSearch.Text
        Response.Redirect(url)
    End Sub

    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.SelectedIndexChanged

    End Sub

    Protected Sub Repeater1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles Repeater1.ItemCommand

    End Sub
End Class